#include "RBTree.h"

int main()
{
    srand((unsigned int)time(NULL));
    RBTree<int,int> a;

    
    vector<int> v;
    vector<int> v1;
    vector<int> v2({21,23,36,85,82,57,24,59,90,4,88,99,40,68,2,32,24,33,});
    for(int i = 0; i < 100; i++)
    {
        int t = rand()%100;
        v.push_back(t);
        v1.push_back(t);
        cout<<t<<',';
    }
    cout<<endl;
    int count = 0;
    for (int i = 0; i < v.size(); i++)
    {
        if(v[i]==23)
        {
            int b = 100;
        }
        count += a.insert(make_pair(v[i],v[i]));
        a.LevelPrint();
    }
    cout<<(v.size()==count)<<endl;
    a.InorderPrint();
    a.LevelPrint();
    cout<<a.test();
    return 0;
}